@import '~@scss/helpers/_utils.scss';
@import '~@scss/themes/index.scss';

.g2-drawer {
  position: relative;
  margin: 0 auto 50px;
  background: $--color-white;
  border-radius: $--border-radius-small;
  box-shadow: $--dialog-box-shadow;
  box-sizing: border-box;
  width: auto;
  min-width: 100px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  top: 0;
  right: 0;
  position: fixed;
  height: 100%;
 
}
.g2-drawer__wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  margin: 0;
  z-index: 2005;
}

.drawer-fade-enter-active {
  animation: drawer-fade-in 0.3s;
}

.drawer-fade-leave-active {
  animation: drawer-fade-out 0.3s;
}

@keyframes drawer-fade-in {
  0% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes drawer-fade-out {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
}
